package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 启动类
 *
 * @Author Vsunks.v
 * @Date 2022/8/8 18:29
 * @Blog blog.sunxiaowei.net/996.mba
 * @Description: 启动类
 */

@Slf4j
@SpringBootApplication
@EnableTransactionManagement
@MapperScan("com.itheima.reggie.dao")   //  一劳永逸，不用再单独配置@Mapper
public class ReggieApplication {
    public static void main(String[] args) {
        SpringApplication.run(ReggieApplication.class, args);
        log.info("项目启动成功...");
    }
}